package com.cangxuan.manage.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 藏品实体类
 */
@Data
public class Goods implements Serializable {

    private Integer id;
    private String name;        //藏品名称
    private Integer mintage;    //铸造量
    private Integer circulation;    //流通量
    private Float price;      //发售价
    private Integer issuerId;      //发行方ID
    private Integer seriesId;    //系列ID
    private String blockchain;  //区块链信息
    private String code;        //藏品编号
    private String hash;        //交易哈希
    private LocalDate releaseDate;  //发售日期
    private String image;       //藏品图片
    private float feeRate;      //手续费率

    private boolean recommend;  //是否推荐
    private boolean news;       //是否新品

    private boolean active;     //是否激活，二级市场是还显示

    public Goods() {
    }

    public Goods(Integer id, String name, Integer mintage, Integer circulation, Float price, Integer issuerId,
                 Integer seriesId, String blockchain, String code, String hash, LocalDate releaseDate, String image,
                 float feeRate, boolean recommend, boolean news, boolean active) {
        this.id = id;
        this.name = name;
        this.mintage = mintage;
        this.circulation = circulation;
        this.price = price;
        this.issuerId = issuerId;
        this.seriesId = seriesId;
        this.blockchain = blockchain;
        this.code = code;
        this.hash = hash;
        this.releaseDate = releaseDate;
        this.image = image;
        this.feeRate = feeRate;
        this.recommend = recommend;
        this.news = news;
        this.active = active;
    }
}
